package com.gs.disk.modules.headImgAndWallper.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gs.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 壁纸或头像资源;
 * @author : 臭猴子.
 * @date : 2022-10-01
 */
@ApiModel(value = "壁纸或头像资源",description = "")
@TableName("wallper_resource")
@Data
@EqualsAndHashCode(callSuper=false)
public class ResourceEntity extends BaseEntity {

    /** 用户id, 为null为游客用户 */
    @ApiModelProperty(name = "userId",value = "用户id, 为null为游客用户")
    private Long userId;
    /** 价格: 免费0元 */
    @ApiModelProperty(name = "price",value = "价格: 免费0元")
    private BigDecimal price;
    /** 文件id */
    @ApiModelProperty(name = "ossFileId",value = "文件id")
    private Long ossFileId;

    @ApiModelProperty(name = "thumbnailFileId", value = "缩略图")
    private Long thumbnailFileId;

    /** 分类id */
    @ApiModelProperty(name = "categoryId",value = "分类id")
    private Long categoryId;
    /** 分类名 */
    @ApiModelProperty(name = "categoryName",value = "分类名")
    private String categoryName;
    /** 文件名 */
    @ApiModelProperty(name = "oldFileName",value = "文件名")
    private String oldFileName;

    @ApiModelProperty(name = "sort",value = "排序")
    private Integer sort;

}
